From news-rocq.inria.fr!couchey.inria.fr!doligez Wed Jan 24 13:37:25 1996 Article: 3647 of rec.games.corewar Path: news-rocq.inria.fr!couchey.inria.fr!doligez From: Planar Newsgroups: rec.games.corewar Subject: Re: Program "0 for 100" (length 6) by "John K W" Date: 24 Jan 1996 10:55:57 GMT Organization: "Brilliance is typically the act of an individual, but incredible stupidity can usually be traced to an organization." -- Jon Bentley Lines: 46 Distribution: world Message-ID: <4e537t$jb7@news-rocq.inria.fr> References: <4e3dgi$5cq@geraldo.cc.utexas.edu> <4e4967$pn2@geraldo.cc.utexas.edu> NNTP-Posting-Host: couchey.inria.fr Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit In article , akemi@netcom.com (David Boeren) writes: >Not bad! Make sure these new ones get in the warrior library, ok Planar? Of course. Every warrior posted to this newsgroup goes into the library. >I guess now I'll have to do a 2-instruction version if I'm gonna get any >fame around here. Too late: ;redcode-94 quiet ;name Loser ;author Planar ;kill test ;strategy Try to lose 100%. ;assert MAXLENGTH >= 2 for 0 How to lose every time in only two instructions. Contents of pspace[0] action -1 (first round) lose on the 3rd cycle 0 (lost) lose on the 3rd cycle 1 (won) do not lose before 3rd cycle 2 (tied) (should not happen) In the self-battle, on the first round the first program to play will lose. Then the loser will continue to lose. rof; 0 ldp.b 0, #0 jmp <-1 end >Either that or do it without pspace in ANY number of >instructions. I don't think it's possible without pspace. -- Planar